import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib .pyplot as plt

data = pd.read_csv(r"E:\code\AI智能\AI_NBA_数据统计画图案例\data\nba_2017_nba_players_with_salary.csv")
print(data.head())
print(data.shape)        # 数据大小
print(data.describe())   # 基本科学计算  平均值, 总数最大/最小值

# 数据效率相关性
data_cor = data.loc[:, ['RPM', 'AGE', 'SALARY_MILLIONS', 'ORB', 'DRB', 'TRB',
                       'AST', 'STL', 'BLK', 'TOV', 'PF', 'POINTS', 'GP', 'MPG', 'ORPM', 'DRPM']]

print(data_cor.head())
corr = data_cor.corr()\

print(corr.head())






